package org.rsbot.loader.script.adapter;

import org.rsbot.loader.asm.ClassAdapter;
import org.rsbot.loader.asm.ClassVisitor;

public class AddInterfaceAdapter extends ClassAdapter
{
  private String inter;

  public AddInterfaceAdapter(ClassVisitor paramClassVisitor, String paramString)
  {
    super(paramClassVisitor);
    this.inter = paramString;
  }

  public void visit(int paramInt1, int paramInt2, String paramString1, String paramString2, String paramString3, String[] paramArrayOfString)
  {
    String[] arrayOfString = new String[paramArrayOfString.length + 1];
    System.arraycopy(paramArrayOfString, 0, arrayOfString, 0, paramArrayOfString.length);
    arrayOfString[paramArrayOfString.length] = this.inter;
    this.cv.visit(paramInt1, paramInt2, paramString1, paramString2, paramString3, arrayOfString);
  }
}